#ifndef LOGCLASS_H
#define LOGCLASS_H

#include "SyncQueue.h"
#include <string>

struct Log
{
    std::string msg;
    std::string stime;
};

class LogClass
{
public: 
    LogClass();
    ~LogClass();

    void writeLog(const std::string msg);
    void runThread();
    std::string getTime();

    void setBasePath(const std::string & basePath);
    void refreshLogFile();

private:
    SyncQueue<Log> *mLogQueue;
    bool mQuit;

    std::string strBasePath;
    std::string strLogFile;
};

#endif